#include "Heap.h"

void test()
{
	Heap hp;
	HeapInit(&hp);
	printf("1111\n");
	for (int i = 0; i < 10; i++)
	{
		//HeapPrint(&hp);
		srand((unsigned)time(NULL) + (unsigned)i * (unsigned)i);
		HeapPush(&hp, rand()%20);
	}
	//printf("%d\n", ((&hp)->a)[0]);
	
	HeapPrint(&hp);
	printf("--------------\n");
	HeapPop(&hp);
	HeapPrint(&hp);
	printf("--------------\n");
	HeapPop(&hp);
	HeapPrint(&hp);
	printf("--------------\n");
	HeapPop(&hp);
	HeapPrint(&hp);
	printf("--------------\n");

}

int main()
{
	//test();
	TestTopk();
	return 0;
}
